package com.study.dao;

import com.study.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository("UserMapper")
public interface UserMapper {
    //用户登录
    String login(String username);
    //用户注册
    int logon(@Param("username")String username, @Param("password")String password,@Param("email")String email,@Param("gender")String gender,@Param("telephone")String telephone,@Param("introduce")String introduce);
    //修改密码
    int updateUser(@Param("username")String username, @Param("password")String password);
    //得到用户全部信息
    User getUser(@Param("username")String username);
}
